﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="admin_Report" MasterPageFile="~/admin/MasterPage2.master" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

      <table width="1100" bgcolor="White" align="center">
        <tr>
            <td bgcolor="#FA7E02" >
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
            </td>
        </tr>
    <tr>
            <td >
                <asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0" 
                    Width="100%">
                    <asp:TabPanel runat="server" HeaderText="Report" ID="TabPanel1">

                       
                        <ContentTemplate><asp:Panel ID="PReport" runat="server"><table width="80%" 
                                align="center"><tr><td bgcolor="#ffffff"><asp:Panel ID="Psearch" runat="server" CssClass="popup"><table align="center" border="0" cellpadding="0" cellspacing="4" width="100%"><tr><td class="letraNegra13">Start Date:</td><td><asp:TextBox ID="tb_stardate" runat="server" CssClass="txtForm" Width="164px"></asp:TextBox><asp:CalendarExtender ID="tb_stardate_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                Enabled="True" TargetControlID="tb_stardate"></asp:CalendarExtender></td><td class="letraNegra13">End Date:</td><td><asp:TextBox ID="tb_enddate" runat="server" CssClass="txtForm" Width="164px"></asp:TextBox><asp:CalendarExtender ID="tb_enddate_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                Enabled="True" TargetControlID="tb_enddate"></asp:CalendarExtender></td><td align="left" class="letraNegra13">Report Type</td><td align="left" class="letraNegra13"><asp:DropDownList ID="cb_invoicetype" runat="server" CssClass="txtForm" 
                                                                Width="170px"><asp:ListItem>Select One</asp:ListItem><asp:ListItem Value="0">Assigned</asp:ListItem>
                                <asp:ListItem Value="2">Paid</asp:ListItem>
                                <asp:ListItem Value="1">Submitted</asp:ListItem>
                                <asp:ListItem Value="4">Unpaid</asp:ListItem>
                                </asp:DropDownList></td></tr><tr><td class="letraNegra13">Client:</td><td><asp:DropDownList ID="cb_client" runat="server" CssClass="txtForm" 
                                                                Height="20px" Width="170px"></asp:DropDownList></td><td class="letraNegra13">Company:</td><td><asp:DropDownList ID="cb_company" runat="server" CssClass="txtForm" 
                                                                Height="20px" Width="170px"></asp:DropDownList></td><td align="left" class="letraNegra13">Account:</td><td align="left" class="letraNegra13" height="18"><asp:DropDownList ID="cb_account" runat="server" CssClass="txtForm" 
                                                                Height="20px" Width="170px"></asp:DropDownList></td></tr><tr><td class="Beige">Processor:</td><td><asp:DropDownList ID="cb_processor" runat="server" CssClass="txtForm" 
                                                                Height="20px" Visible="False" Width="170px"></asp:DropDownList></td><td class="Beige">Driver:</td><td><asp:DropDownList ID="cb_driver" runat="server" CssClass="txtForm" 
                                                                Height="20px" Visible="False" Width="170px"></asp:DropDownList></td><td class="Beige">QC:</td><td><asp:DropDownList ID="cb_qc" runat="server" CssClass="txtForm" Height="20px" 
                                                                Visible="False" Width="170px"></asp:DropDownList></td><td align="right">&#160;</td></tr><tr><td class="Beige">Report</td><td><asp:DropDownList ID="cb_searchby" runat="server" CssClass="txtForm" 
                                                                Visible="False" Width="170px"><asp:ListItem>Select One</asp:ListItem><asp:ListItem Value="co">Company</asp:ListItem><asp:ListItem Value="cl">Client</asp:ListItem><asp:ListItem Value="d">Driver</asp:ListItem><asp:ListItem Value="p">Processor</asp:ListItem><asp:ListItem Value="qc">QC</asp:ListItem></asp:DropDownList></td><td>&#160;</td><td><asp:Label ID="lerror" runat="server" CssClass="letraRojaValidacion"></asp:Label></td><td class="Beige">Sumary</td>
                                <td align="left">
                                    <asp:RadioButtonList ID="rbl_fee" runat="server" CssClass="letraNegra13" 
                                        RepeatColumns="2" Visible="False">
                                        <asp:ListItem>Bpophotos fee</asp:ListItem>
                                        <asp:ListItem>ClientFee</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td><td align="right">&#160;</td></tr><tr><td align="center" colspan="7"><table width="300"><tr><td><asp:LinkButton ID="LinkButton1" runat="server" CssClass="button2_ok" 
                                                                            ForeColor="White" onclick="LinkButton1_Click"><span>Search</span></asp:LinkButton></td><td><asp:LinkButton ID="bt_generate" runat="server" CssClass="button2_ok" 
                                                                            ForeColor="White" Visible="False"><span>Generate/Save</span></asp:LinkButton></td></tr></table></td></tr></table></asp:Panel></td></tr><tr><td><CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
                                                AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="50px" 
                                                ToolbarImagesFolderUrl="" ToolPanelView="ParameterPanel" ToolPanelWidth="50px" 
                                                Width="350px" /></td></tr><tr><td>&#160;</td></tr></table></asp:Panel></ContentTemplate>

                    </asp:TabPanel>
                    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Client Fail">
                        
                        <ContentTemplate><asp:Panel ID="PClient" runat="server"><table align="center" width="900"><tr><td align="center"><asp:Panel ID="pnlUnico" runat="server" CssClass="popup" Width="800px"><table width="800"><tr><td>&#160;</td><td class="style4">&#160;</td><td class="style3">&#160;</td><td class="style3">&#160;</td></tr><tr><td align="left" class="style2">&#160;</td><td align="left" class="style4"><asp:Label ID="lb_startdate" runat="server" Text="Start Date"></asp:Label></td><td align="left"><asp:TextBox ID="tb_stardatefee" runat="server" CssClass="txtForm" 
                                                                Width="164px"></asp:TextBox><asp:CalendarExtender ID="tb_stardatefee_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                Enabled="True" TargetControlID="tb_stardatefee"></asp:CalendarExtender></td><td align="left">&#160;</td></tr><tr><td align="left" class="style2">&#160;</td><td align="left" class="style4"><asp:Label ID="lb_enddate" runat="server" Text="End Date"></asp:Label></td><td align="left"><asp:TextBox ID="tb_enddatefee" runat="server" CssClass="txtForm" Width="164px"></asp:TextBox><asp:CalendarExtender ID="tb_enddatefee_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                Enabled="True" TargetControlID="tb_enddatefee"></asp:CalendarExtender></td><td align="left">&#160;</td></tr><tr><td align="left" class="style2">&#160;</td><td align="left" class="style4"><asp:Panel ID="pproc1" runat="server">Sector</asp:Panel></td><td align="left"><asp:Panel ID="pproc2" runat="server" style="text-align: left"><asp:DropDownList ID="cb_sector" runat="server" AutoPostBack="True" 
                                                                    CssClass="txtForm" Height="20px" 
                                                                    onselectedindexchanged="cb_sector_SelectedIndexChanged" Width="170px"></asp:DropDownList></asp:Panel></td><td align="left">&#160;</td></tr><tr><td align="left" class="style2">&#160;</td><td align="left" class="style4"><asp:Panel ID="Parea1" runat="server">Area</asp:Panel></td><td align="left"><asp:Panel ID="Parea2" runat="server" style="text-align: left"><asp:DropDownList ID="cb_area" runat="server" AutoPostBack="True" 
                                                                    CssClass="txtForm" Height="20px" 
                                                                    onselectedindexchanged="cb_area_SelectedIndexChanged" Width="170px"></asp:DropDownList></asp:Panel></td><td align="left">&#160;</td></tr><tr><td class="style2">&#160;</td><td class="style4"><asp:Panel ID="pdriver1" runat="server" style="text-align: left">County</asp:Panel></td><td><asp:Panel ID="pdriver2" runat="server" style="text-align: left"><asp:DropDownList ID="cb_county" runat="server" CssClass="txtForm" 
                                                                    Height="20px" Width="170px"></asp:DropDownList></asp:Panel></td><td>&#160;</td></tr><tr><td class="style2">&#160;</td><td class="style4">&#160;</td><td><asp:Label ID="lberror" runat="server" CssClass="letraRojaValidacion"></asp:Label></td><td>&#160;</td></tr><tr align="right"><td class="style2">&#160;</td><td class="style4">&#160;</td><td><table cellpadding="0" cellspacing="0"><tr><td><asp:LinkButton ID="lnk_clientfail" runat="server" CssClass="button2_ok" 
                                                                            ForeColor="White" OnClick="lnk_clientfail_Click"><span>Search</span></asp:LinkButton></td><td>&#160;</td></tr></table></td><td>&#160;</td></tr><tr>
                            <td class="style2" colspan="4">
                                &nbsp;</td></tr></table></asp:Panel></td></tr><tr align="center"><td><asp:Panel ID="presult" runat="server" CssClass="popup" Width="800px"><table border="1" cellpadding="0" cellspacing="0" width="800"><tr><td colspan="2" style="text-align: center">Equals</td><td colspan="2" style="text-align: center">Positive</td><td colspan="2" style="text-align: center">Negative</td></tr><tr><td style="text-align: center"># Orders</td><td style="text-align: center">% Price</td><td style="text-align: center"># Orders</td><td style="text-align: center">% Price</td><td style="text-align: center"># Orders</td><td style="text-align: center">% Price</td></tr><tr><td align="center" style="text-align: center"><asp:Label ID="lb_nequals" runat="server" CssClass="letraAzul14" 
                                                                Font-Bold="True" Font-Names="Arial" Font-Size="Medium"></asp:Label></td><td style="text-align: center"><asp:Label ID="lb_pequals" runat="server" CssClass="letraAzul14" 
                                                                Font-Bold="True" Font-Names="Arial Black" Font-Size="Medium"></asp:Label></td><td style="text-align: center"><asp:Label ID="lb_npos" runat="server" CssClass="letraAzul14" Font-Bold="True" 
                                                                Font-Names="Arial Black" Font-Size="Medium"></asp:Label></td><td style="text-align: center"><asp:Label ID="lb_ppos" runat="server" CssClass="letraAzul14" Font-Bold="True" 
                                                                Font-Names="Arial Black" Font-Size="Medium"></asp:Label></td><td style="text-align: center"><asp:Label ID="lb_nneg" runat="server" CssClass="letraAzul14" Font-Bold="True" 
                                                                Font-Names="Arial Black" Font-Size="Medium"></asp:Label></td><td align="center" style="text-align: center"><asp:Label ID="lb_pneg" runat="server" CssClass="letraAzul14" Font-Bold="True" 
                                                                Font-Names="Arial Black" Font-Size="Medium"></asp:Label></td></tr></table></asp:Panel></td></tr><tr align="center"><td>
                                <CR:CrystalReportViewer ID="CrystalReportViewer5" runat="server" 
                                    AutoDataBind="True" GroupTreeImagesFolderUrl="" ToolbarImagesFolderUrl="" 
                                    ToolPanelWidth="200px" />
                                </td></tr>
                            <tr align="center">
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr align="center">
                                <td>
                                    <asp:GridView ID="gv" runat="server" 
                                        Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='accordion'&gt;&lt;tr&gt;&lt;td&gt;Client Fail&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                        CssClass="letraNegra11" HorizontalAlign="Center" 
                                        OnRowDataBound="gv_RowDataBound">
                                    </asp:GridView>
                                </td>
                            </tr>
                            </table></asp:Panel></ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Eval">
                       
                        <ContentTemplate><asp:Panel ID="PEval" runat="server"><table class="style5"><tr><td><table align="center" class="popup"><tr><td><strong>Start Date</strong></td><td><asp:TextBox ID="tb_evaldate1" runat="server" CssClass="txtForm"></asp:TextBox><asp:CalendarExtender ID="tb_evaldate1_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                            Enabled="True" TargetControlID="tb_evaldate1"></asp:CalendarExtender></td><td><strong>End Date</strong></td><td><asp:TextBox ID="tb_evaldate2" runat="server" CssClass="txtForm"></asp:TextBox><asp:CalendarExtender ID="tb_evaldate2_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                            Enabled="True" TargetControlID="tb_evaldate2"></asp:CalendarExtender></td></tr><tr><td>&#160;</td><td>&#160;</td><td>&#160;</td><td>&#160;</td></tr><tr><td class="style7"></td><td class="style7"><asp:LinkButton ID="lnk_save_bank" runat="server" CssClass="button2_ok" 
                                                            ForeColor="White" OnClick="lnk_save_bank_Click"><span>Search</span></asp:LinkButton></td><td class="style7"></td><td class="style7"></td></tr></table></td></tr><tr><td>&#160;</td></tr><tr><td><CR:CrystalReportViewer ID="CrystalReportViewer2" runat="server" 
                                                AutoDataBind="True" GroupTreeImagesFolderUrl="" ToolbarImagesFolderUrl="" 
                                                ToolPanelView="None" ToolPanelWidth="200px" /></td></tr></table></asp:Panel></ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel ID="TabPanel4" runat="server" HeaderText="Revisions">
                        
                        <ContentTemplate><asp:Panel ID="PDNS" runat="server"><table class="style5"><tr><td><table align="center" class="popup"><tr><td>&#160;</td><td>Revisions Report</td><td>&#160;</td><td>&#160;</td></tr><tr><td><strong>Start Date</strong></td><td>
                            <asp:TextBox ID="tb_startdatedns" runat="server" CssClass="txtForm" 
                                Width="171px"></asp:TextBox><asp:CalendarExtender ID="tb_startdatedns_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                            Enabled="True" TargetControlID="tb_startdatedns"></asp:CalendarExtender></td><td><strong>End Date</strong></td><td>
                            <asp:TextBox ID="endatedns" runat="server" CssClass="txtForm" Width="171px"></asp:TextBox><asp:CalendarExtender ID="endatedns_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                            Enabled="True" TargetControlID="endatedns"></asp:CalendarExtender></td></tr><tr><td>
                                Processor</td><td>
                                    <asp:DropDownList ID="cb_processor_rev" runat="server" CssClass="txtForm" 
                                        Width="171px">
                                    </asp:DropDownList>
                                </td><td>&#160;</td><td>&#160;</td></tr><tr><td class="style7"></td><td class="style7"><asp:LinkButton ID="lnk_searchDns" runat="server" CssClass="button2_ok" 
                                                            ForeColor="White" OnClick="lnk_searchDns_Click"><span>Search</span></asp:LinkButton></td><td class="style7"></td><td class="style7"></td></tr></table></td></tr><tr><td>&#160;</td></tr><tr><td><CR:CrystalReportViewer ID="CrystalReportViewer3" runat="server" 
                                                AutoDataBind="True" GroupTreeImagesFolderUrl="" ToolbarImagesFolderUrl="" 
                                                ToolPanelView="None" ToolPanelWidth="200px" /></td></tr></table></asp:Panel></ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel ID="TabPanel5" runat="server" HeaderText="Fails Report">
                        <ContentTemplate><asp:Panel ID="Panel1" runat="server"><table align="center" class="popup"><tr><td>&#160;</td><td>&#160;</td><td>&#160;</td><td>&#160;</td></tr><tr><td>Start Date</td><td><asp:TextBox ID="tb_date1fail" runat="server" CssClass="txtForm" Width="170px"></asp:TextBox><asp:CalendarExtender ID="tb_date1fail_CalendarExtender" runat="server" 
                                                Enabled="True" TargetControlID="tb_date1fail" Format="MM/dd/yyyy"></asp:CalendarExtender></td><td>End Date</td><td>
                            <asp:TextBox ID="tb_date2fail" runat="server" CssClass="txtForm" Width="170px"></asp:TextBox><asp:CalendarExtender  
                                ID="tb_date2fail_CalendarExtender" runat="server" Enabled="True" 
                                TargetControlID="tb_date2fail"></asp:CalendarExtender></td></tr><tr><td>
                                Processor</td><td>
                                    <asp:DropDownList ID="cb_processorfail" runat="server" CssClass="txtForm" 
                                        Width="174px">
                                    </asp:DropDownList>
                                </td><td>&#160;</td><td>&#160;</td></tr><tr><td>&#160;</td><td>&#160;</td><td>&#160;</td><td><asp:LinkButton ID="lnk_searchfail" runat="server" CssClass="button2_ok" 
                                                            ForeColor="White" OnClick="lnk_searchfail_Click"><span>Search</span></asp:LinkButton></td></tr></table><CR:CrystalReportViewer ID="CrystalReportViewer4" runat="server" 
                                                AutoDataBind="True" GroupTreeImagesFolderUrl="" ToolbarImagesFolderUrl="" 
                                                ToolPanelView="None" ToolPanelWidth="50px" />
                                                </asp:Panel></ContentTemplate>
                    </asp:TabPanel>
                </asp:TabContainer>
            </td>
        </tr>
        
        
    
    <tr>
        <td>
             &nbsp;</td>
                                </tr>

     <tr>
            <td >
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>


<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style2
        {
        }
        .style3
        {
            width: 200px;
        }
        .style4
        {
            width: 200px;
        }
        .style5
        {
            width: 100%;
        }
        .style7
        {
            height: 20px;
        }
    </style>
    </asp:Content>



